'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE,TEXT } = app.Sequelize;
  const Article_replys = app.model.define('article_replys', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    comment_id: INTEGER,
    userId: INTEGER,
    username: STRING(20),
    content: TEXT,
    create_time: DATE,
  }, {
      freezeTableName: true,
      tableName: 'article_replys',
      timestamps: false,
    });


  return Article_replys;
};
